function tomcatCtrl($scope, $rootScope, $modal) {
    $scope.readTomcatItemById = function (tomcatId) {
        readTomcatItemById($scope,tomcatId);
    }
}
function readTomcatItemById($scope,tomcatId) {
    $.ajax({
        url: '/project/get_tomcat_item_detail',
        data:{
            'tomcatId':tomcatId
        },
        success: function (data) {
            if (data.success) {
                $scope.$apply(function () {
                    $scope.projectList = data.data;
                });
            }
        },
        error: function (error) {
            console.log(error);
        }
    });
}

angular
    .module('inspinia')
    .controller('tomcatCtrl', tomcatCtrl)